home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
cpphtp2
/
code.jar
/
code
/
ch03
/
fig03_18.txt
< prev
next >
Wrap
Text File
|
1998-02-27
|
467b
|
25 lines
1 // Fig. 3.18: fig03_18.cpp
2 // Functions that take no arguments
3 #include <iostream.h>
4
5 void function1();
6 void function2( void );
7
8 int main()
9 {
10 function1();
11 function2();
12
13 return 0;
14 }
15
16 void function1()
17 {
18 cout << "function1 takes no arguments" << endl;
19 }
20
21 void function2( void )
22 {
23 cout << "function2 also takes no arguments" << endl;
24 }